import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import {
    Button,
    Table,
    Tag,
    Select,
    Input,
    Form,
    FormItem,
    Icon,
    Row,
    Col,
    Sider,
    Layout,
    Header,
    Content,
    Menu,
    MenuItem,
    Tooltip,
    Dropdown,
    Badge,
    DatePicker,
    DropdownMenu,
    DropdownItem,
    Avatar,
    Divider,
    Breadcrumb,
    BreadcrumbItem,
    Submenu,
    TabPane,
    Tabs,
    Page,
    Switch,
    Modal,
    Upload,
    Message
} from 'iview';
import 'iview/dist/styles/iview.css';
import config from '@/config'

Vue.component('Upload', Upload);
Vue.component('DatePicker', DatePicker);
Vue.component('Button', Button);
Vue.component('Table', Table);
Vue.component('Page', Page);
Vue.component('Tabs', Tabs);
Vue.component('Modal', Modal);
Vue.component('i-switch', Switch);
Vue.component('TabPane', TabPane);
Vue.component('Input', Input);
Vue.component('Select', Select);
Vue.component('Form', Form);
Vue.component('FormItem', FormItem);
Vue.component('Icon', Icon);
Vue.component('Row', Row);
Vue.component('Col', Col);
Vue.component('Layout', Layout);
Vue.component('Header', Header);
Vue.component('Content', Content);
Vue.component('Sider', Sider);
Vue.component('Menu', Menu);
Vue.component('MenuItem', MenuItem);
Vue.component('Tooltip', Tooltip);
Vue.component('Dropdown', Dropdown);
Vue.component('Badge', Badge);
Vue.component('DropdownMenu', DropdownMenu);
Vue.component('DropdownItem', DropdownItem);
Vue.component('Avatar', Avatar);
Vue.component('Divider', Divider);
Vue.component('Breadcrumb', Breadcrumb);
Vue.component('BreadcrumbItem', BreadcrumbItem);
Vue.component('Submenu', Submenu);
Vue.component('Tag', Tag);

/**
 * @description 生产环境关掉提示
 */
Vue.config.productionTip = false

/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config
Vue.prototype.$Message = Message

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
